﻿Public Class SelectRowCount
  Public Overrides Property BackColor() As System.Drawing.Color
    Get
      Return MyBase.BackColor
    End Get
    Set(ByVal value As System.Drawing.Color)
      MyBase.BackColor = value
      Me.LabelButtonsPerRow.BackColor = value
    End Set
  End Property

  Public Property BackColorTextbox() As System.Drawing.Color
    Get
      Return Me.ComboBoxButtons.BackColor
    End Get
    Set(ByVal value As System.Drawing.Color)
      Me.ComboBoxButtons.BackColor = value
    End Set
  End Property

  Public Overrides Property ForeColor() As System.Drawing.Color
    Get
      Return MyBase.ForeColor
    End Get
    Set(ByVal value As System.Drawing.Color)
      MyBase.ForeColor = value
      Me.LabelButtonsPerRow.ForeColor = value
      Me.ComboBoxButtons.ForeColor = value
    End Set
  End Property

  Public Sub New()
    Me.InitializeComponent()
    Me.ComboBoxButtons.SelectedIndex = 3
    Me.LabelButtonsPerRow.Text = Language.GetLanguageString("ControlButtonCount") & ":"
  End Sub

  Public ReadOnly Property ButtonCount() As Integer
    Get
      Return Integer.Parse(Me.ComboBoxButtons.SelectedItem.ToString)
    End Get
  End Property
End Class
